/**
 * 用户信息
 */
var mongoose = require('./db.js'),
	Schema = mongoose.Schema;
var UserSchema = new Schema({
	username: { //用户账号
		type: String,
		index: true
	},
	password: { //密码
		type: String
	},
	mobile: { //电话
		type: Number
	},
	nickName: { //昵称
		type: String
	},
	photo: { //照片
		type: String
	},
	friends: { //好友列表
		type: Array
	},
	logindate: { //最近登录时间
		type: Date,
		default: Date.now
	}
});
module.exports = mongoose.model('User', UserSchema); //导出